package pingji.dao.query.impl;

import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import pingji.dao.mapper.UserMapper;
import pingji.dao.query.QueryUserDao;
import pingji.pojo.User;

@Repository
@Log
public class QueryUserDaoImpl implements QueryUserDao {
    @Autowired
    UserMapper mapper;
    @Override
    public User queryById(Integer id) {
        User user=mapper.selectById(id);
        log.info(user.toString());
        return mapper.selectById(id);
    }
}
